OLE.GetLicense Function

Syntax

License_Key as C = GetLicense(C ProgID)

Arguments

License_Key

A key provided by the licensor of the software.

ProgID

The software's programmatic identifier. See OLE Automation Object Browser.

Description

Get a license key for an ActiveX control previously stored using AddLicense.

Discussion

The OLE.GetLicense() method returns the key associated with a programmatic identifier (ProgID) in the global cache.

Example

? ole.addlicense("a", "lic1")
= .T.
? ole.getlicense("a")
= "lic1"
? ole.loaddeveloperlicense("b")
ERROR: OLE: No license found for 'b'
? ole.removelicense("a")
= .T.
? ole.getlicense("a")
ERROR: OLE: No license found for 'a'

See Also